<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@include file="/includes.jsp"%>

<h1 class="layout">Edit System Properties</h1>

<html:form action="systemproperties.do?method=edit" method="post">
    <table class="layout">
        <logic:iterate name="systemPropertyAF" property="systemProperties" id="systemProperties">
            <html:hidden name="systemProperties" indexed="true" property="id"/>
            <html:hidden name="systemProperties" indexed="true" property="name"/>
            <html:hidden name="systemProperties" indexed="true" property="private"/>
            <html:hidden name="systemProperties" indexed="true" property="editable"/>
            <tr>
                <th class="layout"><beans:write name="systemProperties" property="name"/></th>
                <td class="layout">
                    <logic:equal name="systemProperties" property="editable" value="true">
                        <logic:equal name="systemProperties" property="private" value="false">
                            <html:text name="systemProperties" indexed="true" property="value" size="80"/>
                        </logic:equal>
                        <logic:equal name="systemProperties" property="private" value="true">
                            <html:password name="systemProperties" indexed="true" property="value" size="80"/>
                        </logic:equal>
                    </logic:equal>
                    <logic:notEqual name="systemProperties" property="editable" value="true">
                        <html:hidden name="systemProperties" indexed="true" property="value"/>
                        <beans:write name="systemProperties" property="value"/>
                    </logic:notEqual>
                </td>
            </tr>
        </logic:iterate>
    </table>
    <div class="buttons">
        <html:submit property="btnSubmit" value="OK"/>
        <html:cancel property="btnSubmit" value="Cancel"/>
    </div>
</html:form>
